/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.msk.wlhy.mapper;


import com.msk.sys.mapper.CrudDao;
import com.msk.wlhy.domain.HtLogisticsOrderDetail;
import com.msk.wlhy.domain.LogisticsOrderDetailedSummary;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>[]</p>
 * <p>作者：zkp</p>
 * <p>邮箱：zkp@xiangyou.com</p>
 * <p>创建时间： 2018-06-07 </p>
 * <p>类说明：物流订单明细DAO接口 </p>
 * <p>修改记录：</p>
 */
@Repository
public interface HtLogisticsOrderDetailDao extends CrudDao<HtLogisticsOrderDetail> {
	public Long findCount(HtLogisticsOrderDetail htLogisticsOrderDetail);
	/**
	 * @description getDataByBar
	 * @date 2018-10-26
	 * @author chuming
	 * @return
	 */
	public List<Map<String, Object>> getDataByBar(HtLogisticsOrderDetail htLogisticsOrderDetail);
	/**
	 * @description findListByProfit
	 * @date 2018-10-26
	 * @author chuming
	 * @return
	 */
	public List<HtLogisticsOrderDetail> findListByProfit(HtLogisticsOrderDetail htLogisticsOrderDetail);


	public List<HtLogisticsOrderDetail> findOrderList (HtLogisticsOrderDetail htLogisticsOrderDetail);

	public HtLogisticsOrderDetail getOrderInfo(String id);

	public void updateOrderInfo(HtLogisticsOrderDetail htLogisticsOrderDetail);

	public List<HtLogisticsOrderDetail> findStatisticalList(HtLogisticsOrderDetail htLogisticsOrderDetail);

	public String getOriginalNumber(HtLogisticsOrderDetail originalNumber);

	/**
	 * 根据Id条件更新数据
	 * @param htLogisticsOrderDetail
	 * @return
	 */
	public int updateInfoById(HtLogisticsOrderDetail htLogisticsOrderDetail);

	/**
	 * 应付合同统计
	 * @param htLogisticsOrderDetail
	 * @return
	 */
	public List<LogisticsOrderDetailedSummary> getLogisticsOrderDetailedSummaryList(LogisticsOrderDetailedSummary htLogisticsOrderDetail);


	/**
	 * 应付统计报表
	 * @param htLogisticsOrderDetail
	 * @return
	 */
	public List<LogisticsOrderDetailedSummary> getSupplierSummaryList(LogisticsOrderDetailedSummary htLogisticsOrderDetail);

	/**
	 * 根据货主合同Id查询最初生成的车队合同
	 * @param orderId
	 * @return
	 */
	public HtLogisticsOrderDetail selectFirstByOrderId(String orderId);
	
	/**
	 * @author llh
	 * @description 小程序司机接单查看货源详情      
	 */
	public HtLogisticsOrderDetail selectDetailById(HtLogisticsOrderDetail htLogisticsOrderDetail);

	/**
	 * 描述: 查找当前用户托运单列表
	 * @author 作者: yangjy
	 * @date 2023/6/27 14:09
	 * @param htLogisticsOrderDetail
	 * @return 返回值: com.msk.wlhy.domain.HtLogisticsOrderDetail
	 */
	public List<Map<String,Object>> findShippingOrderList(HtLogisticsOrderDetail htLogisticsOrderDetail);

	/**
	 * @author 作者: yangjy
	 * @description 描述: 托运单查看详情
	 * @date 时间: 2023/5/24 20:15
	 * @return 返回值: HtLogisticsOrderDetail
	 */
	public HtLogisticsOrderDetail findListById(HtLogisticsOrderDetail htLogisticsOrderDetail);

	/**
	 * @Description 查询货主托运单列表
	 * @Author wlxiang
	 * @Date 19:15 2023/6/7
	 * @Param
	 * @param htLogisticsOrderDetail
	 * @return java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
	 **/
	public List<Map<String,Object>> selectConsignerLogisticsOrderDetailList(HtLogisticsOrderDetail htLogisticsOrderDetail);

	/**
	 * @author llh
	 * @date 2023/6/19
	 * @return java.util.Map<java.lang.String,java.lang.Object>
	 * @description 小程序货主查询托运单详情
	 */
	public Map<String,Object> getLogisticsInfo(String logisticsId);

	/**
	 * @author llh
	 * @date 2023/7/3
	 * @return java.util.Map<java.lang.String,java.lang.Object>
	 * @description 查询当前司机对应部门所有货源信息      
	 */
	public List<Map<String,Object>> findDriverGoods(HtLogisticsOrderDetail htLogisticsOrderDetail);
}